<template>
  <p>{{ data }}</p>
  <p>{{ loginData }}</p>
</template>
<script lang="ts" setup>
import { getInfo, login } from "../api/index";
import { ref, onUpdated } from "vue";
let data = ref();
let loginData = ref();
let info = async () => {
  let a = await getInfo;
  console.log(a);
  data.value = a.data;
};
let log = async () => {
  let l = await login;
  console.log(l, "l");
  loginData.value = l.data;
};
info();
log();
</script>
<style scoped>
p {
  color: #d69e9e;
}
</style>
